/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package argtrust.trustnet;

//import edu.cuny.argtrust.basics.ArgTrustObject;

/**
 *
 * @author Yuqing Tang
 */
public class Agent {

    String mName;
//    String mDesc;

    @Override
    public int hashCode() {
        return mName.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Agent rhs = (Agent) obj;
        if (!mName.equals(rhs.mName)) {
            return false;
        }
        return true;
    }

    public Agent(String name) {
        mName = name;
    }

    public String toString() {
        return mName;
//        if (mDesc != null) {
//            return mDesc;
//        } else {
//            return this.getID();
//        }
    }
    public String getName()
    {
        return mName;
    }
}
